echo RM, QSN, RR
pattern reset
pattern 0 "(UA RE T)"
pattern 1 unction:
open
send rm\m
: loop
wait
if match 1 qsn
send \m
goto loop
: qsn
pattern reset
pattern 0 unction:
send qsn\m
wait
pattern 1 "(UA RE T)"
send "rr;n\m"
wait
close
send t\m
